package com.gc.common.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gc.common.dto.CarDTO;
import com.gc.common.entity.Car;

public interface CarMapper {
    int deleteByPrimaryKey(Integer carId);

    int deleteInIds(@Param("ids") String ids);
    
    int insert(Car record);

    int insertSelective(Car record);

    int insertList(@Param("cars") List<Car> cars);
    
    Car selectByPrimaryKey(Integer carId);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);
    
    List<Car> selectByDTO(@Param("dto") CarDTO dto);

    List<Map<String, Object>> selectFront(@Param("carId") Integer carId);

}